package com.atguigu.study.bootredis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu.study.bootredis"})
//@ImportResource(value = "classpath*:sharding-jdbc.xml")
@MapperScan(value = {"com.atguigu.study.bootredis.mapper","com.atguigu.study.bootredis.shardingjdbc.dao"})
public class BootRedisApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootRedisApplication.class, args);
    }

}
